package com.china.produce.strategy.template;


import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description 采用组合的方式持有模版对象，并进行回调处理
 * @CreateTime 2024/12/15
 */
@Slf4j
public class ConcreteClass {

    private final TemplateClass templateClass = new TemplateClass();

    public void handle() {

        templateClass.process(new Callback() {
            @Override
            public void callbackMethod() {
                log.info("call back handle , do concrete operation");
            }
        });
    }
}
